package com.byedu.domain.course;

import java.io.Serializable;
import java.util.Date;

/**
 * 答题卡
 * Created by Luo on 2017-04-25.
 */
public class UserQuestionDO implements Serializable{

	private static final long serialVersionUID = 8590263558517823527L;

    /*答题卡编号*/
    private Integer id;
    /*考题编号*/
    private int questionId;
    /*用户编号*/
    private String userId;
    /*选项*/
    private String subOption;
    /*答题时间*/
    private String createTime;

    public UserQuestionDO () {}

    public UserQuestionDO (Integer questionId, String userId, String subOption, String createTime) {
        this.questionId = questionId;
        this.userId = userId;
        this.subOption = subOption;
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public int getQuestionId() {
        return questionId;
    }

    public void setQuestionId(int questionId) {
        this.questionId = questionId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getSubOption() {
        return subOption;
    }

    public void setSubOption(String subOption) {
        this.subOption = subOption;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UserQuestionDO that = (UserQuestionDO) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return id != null ? id.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "UserQuestionDO{" +
                "id=" + id +
                ", questionId=" + questionId +
                ", userId=" + userId +
                ", subOption='" + subOption + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
